import React from 'react';
import './index.less'
export interface TitleProps{
  children?:React.ReactNode
  logo?:string
}
export const Title = ({ children, logo }:TitleProps) => {
  return <div className='title'>
    <div className='title-login'>
      {logo ? <img src={logo} /> : null}
    </div>
    <div className='title-left'>
      <span>{children}</span>
    </div>
  </div>
}